//
//  HLHomeTableViewController.swift
//  HLWeiBo
//
//  Created by jack on 15/12/5.
//  Copyright © 2015年 jack. All rights reserved.
//

import UIKit

class HLHomeTableViewController: HLVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if !userLogin {

            visitorView.setupUserInfo(nil, message: nil)
        }else{
        
        setupUI()
        }
    }
    private func setupUI(){
    
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch",  target: self, action: "friendSearch")
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: "friendSearch")
    }
    
    @objc private func friendSearch() {
        
        let vc = HLTempViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
    }
}
